Skip to content

Conversation

@ivonastojanovic
Copy link
Contributor

Adds a brief note to the pdb help summary about attaching to a running process using the -p option, making the remote debugging feature more visible.

@ivonastojanovic
Copy link
Contributor Author

CC @pablogsal

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, -m pid is not documented at https://docs.python.org/dev/library/pdb.html. You may update this option there as well.

@vstinner vstinner added the needs backport to 3.14 bugs and security fixes label May 19, 2025
@gaogaotiantian
Copy link
Member

Yeah, maybe update the doc file as well.

@python-cla-bot
Copy link

python-cla-bot bot commented May 19, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@ivonastojanovic ivonastojanovic changed the title Mention remote debugging via -p PID in usage text Add documentation for remote debugging with pdb May 19, 2025
Adds a brief note to the pdb help summary about attaching to a running
process using the -p option, making the remote debugging feature
more visible.
@gaogaotiantian
Copy link
Member

I think normally we have a bot that gives a preview of the docs when we changes the docs, any idea what happened @vstinner ?

@vstinner
Copy link
Member

I think normally we have a bot that gives a preview of the docs when we changes the docs, any idea what happened @vstinner ?

You can click on the "readthedocs" CI to go to the preview doc: https://cpython-previews--134260.org.readthedocs.build/en/134260/library/pdb.html

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for updating pdb doc as well.

@pablogsal pablogsal merged commit 6856a04 into python:main May 20, 2025
39 checks passed
@miss-islington-app
Copy link

Thanks @ivonastojanovic for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2025
* Mention remote debugging via -p PID in usage text

Adds a brief note to the pdb help summary about attaching to a running
process using the -p option, making the remote debugging feature
more visible.

* Mention remote debugging in pdb.rst
(cherry picked from commit 6856a04)

Co-authored-by: ivonastojanovic <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented May 20, 2025

GH-134398 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 20, 2025
@gaogaotiantian
Copy link
Member

I think the part where it explains how to use attach, should be part of the -p option, or it would be kind of weird to have it there.

lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
* Mention remote debugging via -p PID in usage text

Adds a brief note to the pdb help summary about attaching to a running
process using the -p option, making the remote debugging feature
more visible.

* Mention remote debugging in pdb.rst
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
* Mention remote debugging via -p PID in usage text

Adds a brief note to the pdb help summary about attaching to a running
process using the -p option, making the remote debugging feature
more visible.

* Mention remote debugging in pdb.rst
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
* Mention remote debugging via -p PID in usage text

Adds a brief note to the pdb help summary about attaching to a running
process using the -p option, making the remote debugging feature
more visible.

* Mention remote debugging in pdb.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants